﻿<%@ Page Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true"
    CodeFile="PaymentType.aspx.cs" Inherits="PaymentType" Title="PaymentType List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    Payment Type List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1"
        PersistenceMethod="Session" />
    <br />
    <data:EntityGridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
        DataSourceID="PaymentTypeDataSource" DataKeyNames="PaymentTypeId" AllowMultiColumnSorting="false"
        DefaultSortColumnName="" DefaultSortDirection="Ascending" ExcelExportFileName="Export_PaymentType.xls"
        AllowPaging="True">
        <Columns>
            <asp:CommandField ShowSelectButton="True" ShowEditButton="False" />
            <asp:BoundField DataField="EnglishTitle" HeaderText="English Title" SortExpression="[EnglishTitle]" />
            <asp:BoundField DataField="AccountNumber" HeaderText="Account Number" SortExpression="[AccountNumber]" />
            <asp:BoundField DataField="VietnameseTitle" HeaderText="Vietnamese Title" SortExpression="[VietnameseTitle]" />
            <asp:BoundField DataField="PaymentTypeId" HeaderText="Payment Type Id" SortExpression="[PaymentTypeID]"
                ReadOnly="True" />
            <asp:BoundField DataField="PaymentTypeCode" HeaderText="Payment Type Code" SortExpression="[PaymentTypeCode]" />
            <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="[Description]" />
            <asp:BoundField DataField="LookUpCode" HeaderText="Look Up Code" SortExpression="[LookUpCode]" />
            <asp:BoundField DataField="Currency" HeaderText="Currency" SortExpression="[Currency]" />
            <asp:BoundField DataField="JournalType" HeaderText="JournalType" SortExpression="[JournalType]" />
            <asp:BoundField DataField="T0" HeaderText="T0" SortExpression="[T0]" />
            <asp:BoundField DataField="T1" HeaderText="T1" SortExpression="[T1]" />
            <asp:BoundField DataField="T2" HeaderText="T2" SortExpression="[T2]" />
            <asp:BoundField DataField="T3" HeaderText="T3" SortExpression="[T3]" />
            <asp:BoundField DataField="T4" HeaderText="T4" SortExpression="[T4]" />
            <asp:BoundField DataField="T5" HeaderText="T5" SortExpression="[T5]" />
        </Columns>
        <EmptyDataTemplate>
            <b>No PaymentType Found!</b>
        </EmptyDataTemplate>
    </data:EntityGridView>
    <br />
    <asp:Button runat="server" ID="btnPaymentType" OnClientClick="javascript:location.href='PaymentTypeEdit.aspx'; return false;"
        Text="Add New" CssClass="button"></asp:Button>
    <data:PaymentTypeDataSource ID="PaymentTypeDataSource" runat="server" SelectMethod="GetPaged"
        EnablePaging="True" EnableSorting="True">
        <Parameters>
            <data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
            <data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
            <asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex"
                Type="Int32" />
            <asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize"
                Type="Int32" />
            <data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
        </Parameters>
    </data:PaymentTypeDataSource>
</asp:Content>
